﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WordsOfLoveServer.Models.Forums;

namespace WordsOfLoveServer.Models.ReturnValues
{
	public class ForumCommentInfo
	{
		public int Id { get; set; }
		public int UserId { get; set; }
		public int PostId { get; set; }
		public string Content { get; set; }
		public DateTime CreateTime { get; set; }

		public int LikeCount { get; set; }
		public string UserName { get; set; }

		public ForumCommentInfo(ForumComment comment)
		{
			Id = comment.Id;
			UserId = comment.UserId;
			PostId = comment.PostId;
			Content = comment.Content;
			CreateTime = comment.CreateTime;
		}
	}
}